package com.zjgsu.demo.nodeEntity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

import java.util.List;

@NodeEntity(label="Dev")
public class Dev {
    @GraphId
    private Long id;
    private String devName;
    private String devDescrip;
    private String devNo;
    @Relationship(type = "devComp")
    @JsonProperty("devComp")
    private List<DevComp> devComp;
    private String devType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getDevDescrip() {
        return devDescrip;
    }

    public void setDevDescrip(String devDescrip) {
        this.devDescrip = devDescrip;
    }

    public String getDevNo() {
        return devNo;
    }

    public void setDevNo(String devNo) {
        this.devNo = devNo;
    }

    public List<DevComp> getDevComp() {
        return devComp;
    }

    public void setDevComp(List<DevComp> devComp) {
        this.devComp = devComp;
    }

    public String getDevType() {
        return devType;
    }

    public void setDevType(String devType) {
        this.devType = devType;
    }
}
